		
<%@page import="javax.jdo.PersistenceManager"%>
<%@page import="com.ykwep.web.server.PMF"%>
<%@page import="com.ykwep.web.server.data.NewsItem"%>
<%@page import="java.util.List"%>		
	
	
	<jsp:include page="/header.jsp" />	
		<%
		List<NewsItem> newsItems = NewsItem.getAllPublishedNewsItems();
    if (newsItems.isEmpty()) {
%>

<p>There are no news.</p>
<%
    } else {
        for (NewsItem g : newsItems) {
%>
		<div class="entry">
			<div class="entry-title"><a href="#"><%=g.getTitle() %></a></div>
			<div class="date"><%=g.getDate() %></div>
			<p><%=g.getContent() %></p>
			<!--  <div class="comments"><a href="#">3 comments</a></div> -->
		</div>
<%
        }
    }
%>

<jsp:include page="/footer.jsp" />